package com.angel.util;

import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;

public class GetPreferenced extends Activity{
           public void onCreate(Bundle savedInstanceState){
        	   super.onCreate(savedInstanceState);
                    SharedPreferences sp=getSharedPreferences("table1",0);
                    int age=sp.getInt("age", 0);
		         	       String name=sp.getString("name", "tao");
		         	       Log.i("ActivityDatail:","age："+age+" name:"+name);
                    
           }
}
